const personnel_data = {
    delOne: () => {

    },
    updateOne: (newData) => {
        console.log(newData)
        const aIndex = listData.findIndex(item => item.id == newData.id)
        listData[aIndex] = newData
        return true
    },
    addOne: (newData) => {
        listData.push(newData)
    },
    getList: (test) => {
        return listData
    }
}


const listData = [
    {
        name: '陈晓',
        idCard: '440924155605058564',
        age: '25',
        id:1,
        department: '11',
        workingGroup: '',
        post: '技术开发',
        sex : 1,
        role: [],
        userName: '',
        pwd: '',
        openCard: 0,
        contactInformation: [
            {
                name: '手机号',
                value: '12345678910'
            },
            {
                name: '邮箱',
                value: '999999512@qq.com'
            }
        ]
    }
]

export default personnel_data